﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

//importamos
using EventSys.BussinesEntities;
using EventSys.Repository;
using Microsoft.Practices.Unity;

namespace EventSys.BussinesLogic
{
    public class CarreraService: ICarreraService
    {
        [Dependency]
        public ICarrerasRepository carreraRepository { get; set; }

        public void RegistrarCarrera(Carrera carrera)
        {
            carreraRepository.RegistrarCarrera(carrera);
        }

        public Carrera CarreraById(int id)
        {
            return carreraRepository.CarreraById(id);
        }

        public void EditarCarrera(Carrera carrera)
        {
            carreraRepository.EditarCarrera(carrera);
        }

        public void EliminarCarrera(int id)
        {
            throw new NotImplementedException();
        }

        public List<Carrera> GetFromAllCarrera()
        {
            return carreraRepository.GetFromAllCarrera();
        }

        public List<Carrera> GetFromAllCarreraByCriterio(string criterio)
        {
            return carreraRepository.GetFromAllCarreraByCriterio(criterio);
        }
    }
}
